import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { BrowserRouter as Router} from 'react-router-dom';
import createHistory from 'history/createBrowserHistory'
import registerServiceWorker from './registerServiceWorker';
import './lib/rem';
import FastClick from 'fastclick';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';

const history = createHistory()

FastClick.attach(document.body);
injectTapEventPlugin();

ReactDOM.render((
  <Router history={history}>
    <MuiThemeProvider>
      <App/>
    </MuiThemeProvider>
  </Router>
), document.getElementById('root'));
registerServiceWorker();
